package com.example.chapter07_client.entity;

public class User {
    public int id; //序号
    public String name; //姓名
    public int age; //年龄
    public float height; //身高
    public float weight; //体重
    public boolean married; //婚否
    public String phone; //手机号
    public String password; //密码

    public User(){

    }

    public User(String name, int age, float height, float weight, boolean married) {
        this.name = name;
        this.age = age;
        this.height = height;
        this.weight = weight;
        this.married = married;
    }
    public User(String phone, String password) {
        this.phone = phone;
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", weight=" + weight +
                ", married=" + married +
                ", phone=" + phone +
                ", password=" + password +
                '}';
    }
}
